<template>
  <div class="box">{{ a }} : {{ b }}</div>
  <Row>
    <Button type="default" @click="add">操作</Button>
  </Row>
</template>

<script>
import axios from 'axios'
export default {
  data() {
    return {
      a: 1,
      b: 2
    }
  },
  computed: {
    c() {
      console.log(`修改C`)
      return this.a + this.b
    }
  },
  methods: {
    add() {
      console.log(`helloworld`)
      // axios
      //   .get('251125.php')
      //   .then((res) => {
      //     return res.data
      //   })
      //   .then((res) => {
      //     console.log(res)
      //   })
      let d = this.c
      console.log('d', d)
    }
  }
}
</script>

<style lang="scss" scoped>
.box {
  width: 100px;
  height: 100px;
  border: 1px solid #000;
}
</style>
